list Of
Returns an immutable list containing only the specified object element. The returned list is serializable.
Samples
import samples.*
import kotlin.test.*
fun main() {
//sampleStart
val list = listOf('a')
assertPrints(list, "[a]")
assertPrints(list.size, "1")
//sampleEnd
}